home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / Fresco / build / Unix / config / cf / Imake.cf < prev    next >
Text File  |  1995-07-12  |  9KB  |  427 lines

  1. XCOMM $XConsortium: Imake.cf,v 1.19 95/01/05 19:24:32 kaleb Exp $
  2. /*
  3.  * To add support for another platform:
  4.  * 
  5.  *     1.  Identify a machine-specific cpp symbol.  If your preprocessor 
  6.  *         does not have any built in, you will need to add the symbol to the
  7.  *         cpp_argv table in config/imake/imakemdep.h and rebuild imake with
  8.  *         the BOOTSTRAPCFLAGS variable set (see the macII for an example).
  9.  *
  10.  *     2.  Add all machine-specific cpp symbols (either defined by you or by
  11.  *         the preprocessor or compiler) to the predefs table in 
  12.  *         config/imake/imakemdep.h.
  13.  *
  14.  *     3.  But a new #ifdef block below that defines MacroIncludeFile and
  15.  *         MacroFile for your new platform and then #undefs the machine-
  16.  *         specific preprocessor symbols (to avoid problems with file names).
  17.  *
  18.  *     4.  Create a .cf file with the name given by MacroFile.
  19.  */
  20.  
  21. #ifdef ultrix
  22. #define MacroIncludeFile <ultrix.cf>
  23. #define MacroFile ultrix.cf
  24. #ifdef vax
  25. #undef vax
  26. #define VaxArchitecture
  27. #endif
  28. #ifdef mips
  29. #undef mips
  30. #define MipsArchitecture
  31. #endif
  32. #undef ultrix
  33. #define UltrixArchitecture
  34. #endif /* ultrix */
  35.  
  36. #if defined(vax) && !defined(UltrixArchitecture)
  37. #define MacroIncludeFile <bsd.cf>
  38. #define MacroFile bsd.cf
  39. #undef vax
  40. #define BSDArchitecture
  41. #define VaxArchitecture
  42. #endif /* vax */
  43.  
  44. #ifdef bsdi
  45. #define MacroIncludeFile <bsdi.cf>
  46. #define MacroFile bsdi.cf
  47. #undef bsdi
  48. #define BSD386Architecture
  49. #define i386BsdArchitecture
  50. #define i386Architecture
  51. #endif /* bsdi */
  52.  
  53. #ifdef __NetBSD__
  54. #define MacroIncludeFile <NetBSD.cf>
  55. #define MacroFile NetBSD.cf
  56. #undef __NetBSD__
  57. #define NetBSDArchitecture
  58. #ifdef __i386__
  59. #define i386BsdArchitecture
  60. #define i386Architecture
  61. #endif
  62. #if defined(__sparc__) || defined(sparc)
  63. #define SparcArchitecture
  64. #undef sparc
  65. #endif
  66. #endif /* NetBSD */
  67.  
  68. #ifdef __FreeBSD__
  69. #define MacroIncludeFile <FreeBSD.cf>
  70. #define MacroFile FreeBSD.cf
  71. #undef __FreeBSD__
  72. #define FreeBSDArchitecture
  73. #ifdef __i386__
  74. #define i386BsdArchitecture
  75. #define i386Architecture
  76. #endif
  77. #endif /* __FreeBSD__ */
  78.  
  79. #ifdef AMOEBA
  80. /* Should be before the 'sun' entry because we may be cross-compiling */
  81. #define MacroIncludeFile <Amoeba.cf>
  82. #define MacroFile Amoeba.cf
  83. #if defined(i80386) || defined(__i80386__)
  84. #define i386Architecture
  85. #else
  86. #if defined(mc68000) || defined(__mc68000__)
  87. #define Sun3Architecture
  88. #define SunArchitecture
  89. #else
  90. #if defined(sparc) || defined(__sparc__)
  91. #define SparcArchitecture
  92. #define SunArchitecture
  93. #endif
  94. #endif
  95. #endif
  96. #undef i80386
  97. #undef mc68000
  98. #undef sparc
  99. #undef sun
  100. #endif /* AMOEBA */
  101.  
  102. #ifdef sun
  103. #define MacroIncludeFile <sun.cf>
  104. #define MacroFile sun.cf
  105. #ifdef SVR4
  106. #undef SVR4
  107. #define SVR4Architecture
  108. #endif
  109. #ifdef sparc
  110. #undef sparc
  111. #define SparcArchitecture
  112. #endif
  113. #ifdef mc68000
  114. #undef mc68000
  115. #define Sun3Architecture
  116. #endif
  117. #ifdef i386
  118. #undef i386
  119. #define i386Architecture
  120. #endif
  121. #undef sun
  122. #define SunArchitecture
  123. #endif /* sun */
  124.  
  125. #ifdef hpux
  126. #define MacroIncludeFile <hp.cf>
  127. #define MacroFile hp.cf
  128. #undef hpux
  129. #define HPArchitecture
  130. #endif /* hpux */
  131.  
  132. #ifdef USL
  133. #define MacroIncludeFile <usl.cf>
  134. #define MacroFile usl.cf
  135. #undef USL
  136. #undef SVR4
  137. #define SVR4Architecture
  138. #define i386Architecture
  139. #endif /* USL */
  140.  
  141. #ifdef NCR
  142. #define MacroIncludeFile <ncr.cf>
  143. #define MacroFile ncr.cf
  144. #undef NCR
  145. #undef SVR4
  146. #define SVR4Architecture
  147. #define i386Architecture
  148. #endif /* NCR */
  149.  
  150. #ifdef apollo
  151. #define MacroIncludeFile <apollo.cf>
  152. #define MacroFile apollo.cf
  153. #undef apollo
  154. #define ApolloArchitecture
  155. #endif /* apollo */
  156.  
  157. #ifdef sony
  158. #define MacroIncludeFile <sony.cf>
  159. #define MacroFile sony.cf
  160. #undef sony
  161. #undef sony_news
  162. #define SonyArchitecture
  163. #ifdef mc68020
  164. #undef mc68020
  165. #undef mc68030
  166. #define Mc68020Architecture
  167. #endif
  168. #ifdef mips
  169. #undef mips
  170. #define MipsArchitecture
  171. #endif
  172. #if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
  173. #define SonySysvArchitecture
  174. #else
  175. #define SonyBsdArchitecture
  176. #endif
  177. #endif /* sony */
  178.  
  179. #ifdef M4310
  180. #define MacroIncludeFile <pegasus.cf>
  181. #define MacroFile pegasus.cf
  182. #undef M4310
  183. #define PegasusArchitecture
  184. #endif /* M4310 */
  185.  
  186. #ifdef M4330
  187. #define MacroIncludeFile <m4330.cf>
  188. #define MacroFile m4330.cf
  189. #undef  M4330
  190. #define M4330Architecture
  191. #endif /* M4330 */
  192.  
  193. #ifdef macII
  194. #define MacroIncludeFile <macII.cf>
  195. #define MacroFile macII.cf
  196. #undef  macII
  197. #define MacIIArchitecture
  198. #endif /* macII */
  199.  
  200. #ifdef _CRAY
  201. #define MacroIncludeFile <cray.cf>
  202. #define MacroFile cray.cf
  203. #undef cray
  204. #undef CRAY
  205. #undef CRAY1
  206. #undef CRAY2
  207. #undef YMP
  208. #define CrayArchitecture
  209. #endif /* _CRAY */
  210.  
  211. #ifdef sgi
  212. #define MacroIncludeFile <sgi.cf>
  213. #define MacroFile sgi.cf
  214. #undef sgi
  215. #define SGIArchitecture
  216. #undef mips
  217. #define MipsArchitecture
  218. #endif /* sgi */
  219.  
  220. #ifdef stellar
  221. #define MacroIncludeFile <stellar.cf>
  222. #define MacroFile stellar.cf
  223. #undef stellar
  224. #define StellarArchitecture
  225. #endif /* stellar */
  226.  
  227. #if defined(ibm) || defined(_IBMR2) || defined(ibm032) || defined(aix)
  228. #define MacroIncludeFile <ibm.cf>
  229. #define MacroFile ibm.cf
  230. #ifdef ibm
  231. #undef ibm
  232. #endif
  233. #define IBMArchitecture
  234. #ifdef i386
  235. #undef i386
  236. #define PS2Architecture
  237. #endif
  238. #ifdef ibm032
  239. #undef ibm032
  240. #define RtArchitecture
  241. #endif
  242. #ifdef aix
  243. #undef aix
  244. #define AIXArchitecture
  245. #endif
  246. #ifdef _IBMR2
  247. #undef _IBMR2
  248. #define RsArchitecture
  249. #endif
  250. #endif /* ibm */
  251.  
  252. #ifdef luna
  253. #undef luna
  254. #define MacroIncludeFile <luna.cf>
  255. #define MacroFile luna.cf
  256. #define LunaArchitecture
  257. #ifdef mc68000
  258. #undef mc68000
  259. #define Mc68000Architecture
  260. #else
  261. #undef mc88000
  262. #define Mc88000Architecture
  263. #endif
  264. #endif /* luna */
  265.  
  266. #ifdef Mips
  267. #  define MacroIncludeFile <Mips.cf>
  268. #  define MacroFile Mips.cf
  269. #  undef Mips
  270. #  undef mips
  271. #  if defined(SYSTYPE_BSD43) || defined(BSD) || defined(BSD43)
  272. #    define MipsBsdArchitecture
  273. #  else /* BSD */
  274. #    define MipsSysvArchitecture
  275. #  endif /* BSD */
  276. #endif /* Mips */
  277.  
  278. #ifdef MOTOROLA
  279. # define MacroIncludeFile <moto.cf>
  280. # define MacroFile moto.cf
  281. # undef MOTOROLA    
  282. # ifdef SYSV
  283. #  define MotoR3Architecture
  284. # endif
  285. # ifdef SVR4
  286. #  define MotoR4Architecture
  287. # endif
  288. #endif /* MOTOROLA */
  289.  
  290. #ifdef SVR4
  291. # ifdef i386
  292. #  define i386Architecture
  293. # endif
  294. # define SVR4Architecture
  295. # define MacroIncludeFile <svr4.cf>
  296. # define MacroFile svr4.cf
  297. # undef SVR4
  298. #endif /* SVR4 */
  299.  
  300. #ifdef SYSV
  301. # ifdef i386
  302. #  define MacroIncludeFile <x386.cf>
  303. #  define MacroFile x386.cf
  304. #  define i386SVR3Architecture
  305. # endif
  306. #endif /* SYSV */
  307.  
  308. #ifdef SYSV386
  309. # ifdef SVR4
  310. #  define i386Architecture
  311. #  define SVR4Architecture
  312. #  define i386SVR4Architecture
  313. #  define MacroIncludeFile <svr4.cf>
  314. #  define MacroFile svr4.cf
  315. #  undef SVR4
  316. # else
  317. #  define MacroIncludeFile <x386.cf>
  318. #  define MacroFile x386.cf
  319. #  define i386SVR3Architecture
  320. # endif
  321. #endif /* SYSV386 */
  322.  
  323. #ifdef DGUX
  324. #define MacroIncludeFile <DGUX.cf>
  325. #define MacroFile DGUX.cf
  326. #undef DGUX
  327. #define DguxArchitecture
  328. #endif /* DGUX */
  329.  
  330. #ifdef __convex__
  331. # define MacroIncludeFile <convex.cf>
  332. # define MacroFile convex.cf
  333. # ifdef convex
  334. #  undef convex
  335. # endif
  336. # define ConvexArchitecture
  337. #endif /* _convex_ */
  338.  
  339. #ifdef __osf__
  340. #define MacroIncludeFile <osf1.cf>
  341. #define MacroFile osf1.cf
  342. #define OSF1Architecture
  343. #undef __osf__
  344. #ifdef __mips__
  345. #undef __mips__
  346. #define MipsArchitecture
  347. #endif
  348. #ifdef __alpha
  349. #undef __alpha
  350. #define AlphaArchitecture
  351. #endif
  352. #endif /* __osf__ */
  353.  
  354. #ifdef Oki
  355. #define MacroIncludeFile <Oki.cf>
  356. #define MacroFile Oki.cf
  357. #undef Oki
  358. #define i860SVR4Architecture
  359. #endif /* Oki */
  360.  
  361. #ifdef WIN32
  362. #define MacroIncludeFile <Win32.cf>
  363. #define MacroFile Win32.cf
  364. #define Win32Architecture
  365. #endif /* WIN32 */
  366.  
  367. #ifdef linux 
  368. #define MacroIncludeFile <linux.cf>
  369. #define MacroFile linux.cf
  370. #undef linux
  371. #define LinuxArchitecture
  372. #define i386Architecture
  373. #endif /* linux */
  374.  
  375. #ifdef __uxp__
  376. #define MacroIncludeFile <fujitsu.cf>
  377. #define MacroFile fujitsu.cf
  378. #undef __uxp__
  379. #ifdef sparc
  380. #undef sparc
  381. #define SparcArchitecture
  382. #endif
  383. #endif /* __uxp__ */
  384.  
  385. #ifdef __sxg__
  386. #define MacroIncludeFile <fujitsu.cf>
  387. #define MacroFile fujitsu.cf
  388. #undef __sxg__
  389. #define mc68000Architecture
  390. #endif /* __sxg__ */
  391.  
  392. #if defined(sequent) || defined(_SEQUENT_)
  393. # define MacroIncludeFile <sequent.cf>
  394. # define MacroFile sequent.cf
  395. # ifdef sequent
  396. #  undef sequent
  397. #  define Dynix3Architecture
  398. # endif
  399. # ifdef _SEQUENT_
  400. #  undef _SEQUENT_
  401. #  define DynixPtxArchitecture
  402. # endif
  403. # define SequentArchitecture
  404. #endif
  405.  
  406. #if defined(_nec_ews_svr4) || defined(nec_ews_svr4) || defined(nec_ews_svr2) || defined(SX) || defined(_nec_up) || defined(_nec_ft) || defined(PC_UX)
  407. #ifdef nec
  408. #undef nec
  409. #endif
  410. #define MacroIncludeFile <nec.cf>
  411. #define MacroFile nec.cf
  412. #define NecArchitecture
  413. #endif
  414.  
  415. #      define MacroIncludeFile <sco.cf>
  416. #      define MacroFile sco.cf
  417. #      define MacroIncludeFile <sco.cf>
  418. #      define MacroFile sco.cf
  419.  
  420.  
  421. #ifndef MacroIncludeFile
  422. XCOMM WARNING:  Imake.cf not configured; guessing at definitions!!!
  423. XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake.
  424. #define MacroIncludeFile <generic.cf>
  425. #define MacroFile generic.cf
  426. #endif
  427.